package javaCode.chapter16;

/**
 * @author 徐州城
 * @version 1.0
 */
public class CpuNum {
    public static void main(String[] args) {

        Runtime runtime = Runtime.getRuntime();
        //获取当前电脑的cpu数量/核心数
        int cupNums = runtime.availableProcessors();
        System.out.println(cupNums);
    }
}
